<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:disp="http://java.sun.com/jsf/composite/display"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <h:outputStylesheet name="styles/generalStyle.css" />
        <title>#{str.addApplication}</title>
        
         <c:if test="#{jobSeeker.loggedin==false}" >
            <meta http-equiv="REFRESH" content="0;url=../page_login.xhtml"/>
        </c:if>
    </h:head>
    <h:body>
        <c:if test="#{jobSeeker.loggedin==true}" >
        <div id="north">
            <disp:page_north head="#{str.addApplication} #{str.stage} 1" />
        </div>
        <div id="center">
            <h3>#{str.pleaseFillIn}</h3>
            <h:form>
                <div style="color:red"><h:messages id="validationErrors" /></div>
                <table>
                    <tr>
                        <td>
                            #{str.firstName} 
                        </td>
                        <td>
                            <h:inputText id="firstName" value="#{jobSeeker.firstName}" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            #{str.lastName} 
                        </td>
                        <td>
                            <h:inputText id="lastName" value="#{jobSeeker.lastName}" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            #{str.eMail} 
                        </td>
                        <td>
                            <h:inputText id="eMailAddress" value="#{jobSeeker.eMailAddress}" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="right">
                            <h:commandLink action="#{jobSeeker.goToStage(2)}">#{str.next} #{str.stage} &gt;</h:commandLink>
                        </td>
                    </tr>
                </table>
            </h:form>
        </div>
        <div id="south">
            <disp:page_south head="#{str.stage} 1 #{str.of} 4" />
        </div>
            </c:if>
    </h:body>
</html>

